# from django.shortcuts import render
from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
from users.models import User
from users.serializers import UserSerializer
from utils.custom_page import CustomPagination


# Create your views here.

class UserViewSet(viewsets.ModelViewSet):
    queryset = User.objects.all().order_by('id')
    serializer_class = UserSerializer
    filter_backends = (DjangoFilterBackend,)
    pagination_class = CustomPagination
    search_fields = ('id',)
